home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
Dashboard2.lha
/
Dashboard2
/
AmiTCP
/
bin
/
StartNet
< prev
next >
Wrap
Text File
|
1998-03-27
|
2KB
|
59 lines
/*
$VER: StartNet 2.0 (26.3.98)
(c) Neil Bothwick
Starts up AmiTCP or Miami and sets up everything
ready to connect to the Internet
*/
options results
address command
/* Load arexx libraries */
'Wirenet:bin/AddLibs'
/* Load prefs if not already done */
if getclip('TCPstack') = '' then 'Wirenet:bin/WirenetPrefs LOAD'
/* Check if TCP stack is already running */
if show(P,'AMITCP') | show(P,'MIAMI.1') then exit
/* Mount TCP: first, so it can be used with Miami too */
'Assign TCP: Exists > NIL:'
if RC > 0 then 'Mount TCP: from AmiTCP:devs/Inet-Mountlist'
if pos(upper(getclip('TCPstack')),'1TRUEYES') > 0 then do
/* Start Miami */
'Run >NIL: Miami:Miami'
'Wait 3'
'WaitForPort MIAMI.1'
end
else do
'Assign APIPE: Exists > NIL:'
if RC > 0 then 'Mount APIPE: from AmiTCP:devs/APipe-Mountlist'
/* login */
'AmiTCP:bin/login' getclip('UserName')
'AmiTCP:bin/umask 022'
/* start AmiTCP */
'AmiTCP:AmiTCP'
'WaitForPort AMITCP'
/* Configure loop-back device */
'AmiTCP:bin/ifconfig lo0 localhost'
if getclip('IPAddress') ~= '0.0.0.0' then do
/* Add IP address entry for this host */
address 'AMITCP' 'ADD HOST' getclip('IPAddress') getclip('HostName')||getclip('DomainName')
/* Add route to this host */
'AmiTCP:bin/route add' getclip('IPAddress') 'localhost'
end
/* Start the internet `super server' */
'run >NIL: AmiTCP:bin/inetd'
end
'SetEnv NetState Offline'
if exists('Wirenet:UserScripts/Startnet') > 0 then 'Wirenet:UserScripts/Startnet'